<?php

$nextEndPublish = '2015-4-26';
//$nextEndPublish = '2000-01-01';

// ITEM 1 --------------------------------------------------
if(publish('',$nextEndPublish)) {

    snippet('featured-item.php', array(
        'url'       => 'http://onefundnrhc.com',
        'img'       => 'http://nrhc-pages.northrockhill.com/ONEfund/OneFundwithBackground.jpg',
        'subtitle'  => 'The latest information on ONE'
    ));

} else {

    snippet('featured-item.php', array(
        'url'       => 'http://onefundnrhc.com',
        'img'       => 'http://nrhc-pages.northrockhill.com/ONEfund/OneFundwithBackground.jpg',
        'subtitle'  => 'The latest information on ONE'
    ));

}

// ITEM 2 --------------------------------------------------
if(publish('',$nextEndPublish)) {

    snippet('featured-item.php', array(
        'url'       => url('/news/2015/03/baby-dedication'),
        'img'       => 'http://nrhc-pages.northrockhill.com/baby-dedication/2015/360Webslider.jpg',
        'subtitle'  => nrhcDate('5/10')
    ));

} else {

    snippet('featured-item.php', array(
        'url'       => url('/news/2015/04/city-serve'),
        'img'       => 'http://nrhc-pages.northrockhill.com/northrockstudents/CityServe/2015SmallWebslider.jpg',
        'subtitle'  => nrhcDate('5/16')
    ));

}

// ITEM 3 --------------------------------------------------
if(publish('',$nextEndPublish)) {

    snippet('featured-item.php', array(
        'url'       => url('connect'),
        'img'       => 'http://nrhc-pages.northrockhill.com/classes/Connect/LogoOnly360Webslider.jpg',
        'subtitle'  => nrhcdate('may 3, 2015')
    ));

} else {

    snippet('featured-item.php', array(
        'url'       => url('connect'),
        'img'       => 'http://nrhc-pages.northrockhill.com/classes/Connect/LogoOnly360Webslider.jpg',
        'subtitle'  => nrhcdate('may 3, 2015')
    ));

}

// ITEM 4 --------------------------------------------------
if(publish('',$nextEndPublish)) {

    snippet('featured-item.php', array(
        'url'       => url('ministries/local-missions'),
        'img'       => 'http://nrhc-pages.northrockhill.com/ministry/dream-center/360-webslider-logo-only.jpg',
        'subtitle'  => 'Serve our city'
    ));

} else {

    snippet('featured-item.php', array(
        'url'       => url('ministries/local-missions'),
        'img'       => 'http://nrhc-pages.northrockhill.com/ministry/dream-center/360-webslider-logo-only.jpg',
        'subtitle'  => 'Serve our city'
    ));

}

?>
